<?php

header("Content-type:text/html;charset:utf-8");
require 'config_db.php'; //顺序不能乱
require 'db_connect_fn.php';
//如果发送来的数据为空，获取cid  发送读取该条信息sql  加载修改模板
$cid = intval($_GET["cid"]);
if ($cid) {
      query("delete  from class where cid=$cid");
      echo "删除班级成功";
      echo "<script>setTimeout(function(){location.href='index.php'},2000)</script>";
}
?>
